var userSelecter = {
	grid:null,
	show:function(onSelect){
		var boss = this;
		boss.dialog = sbl.dialog({
			url: burl + "/view/common/policeList.jsp",
			width: "550px",
			height: "500px",
			OnComplete:function(){
				
				boss.search();
				$("#searchBtn").bind("click",function(){
					boss.search();
				});
				
				$("#enter").bind("click", function(){
					var rows = boss.grid.getSelectRows();
					boss.dialog.remove();
					onSelect(rows);
				});
			}
		});
	},
	search:function(){
		var boss = this;
		var keyword = $("#keyword").val();
		boss.grid = ManagerGrid.grid({
			url: burl + "/User/getUserList.do",
			Data:{showname:keyword},
			columns: [{
				text: "账号", field: "USERNAME"
			}, {
				text: "用户名", field: "SHOWNAME"
			}, {
				text: "电话号码", field: "TEL_NUMBER"
			}]
		}, "police_grid");
	}
};